package main //必须

import "fmt"

func main() {
	var a int
	a = test()
	fmt.Println(" a = ", a)

	a = test2()
	fmt.Println(" a2 = ", a)

	a = test3()
	fmt.Println(" a3 = ", a)

}

func test() int {
	return 666
}

func test2() (result int) {
	return 5555
}

// 推荐用法
func test3() (result int) {
	result = 44444
	return
}
